package com.liudadan.pojo;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Past;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
@Data
public class User {

    @NotBlank
    private String account;

    @Length(min = 6,max = 12)
    private String password;

    @Min(18)
    private int age;


    //@JsonFormat()
    @Past
    private Date birthday;

//    private Double height;

}
